package org.origin.ferret.system.model.vo.role;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 系统角色响应-实体类
 *
 * @author ferret
 * @version 2024-05-08
 */
@Data
@Accessors(chain = true)
@Schema(description = "系统角色响应-实体类")
public class SysRoleVo {

    @Schema(description = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @Schema(description = "上级")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long parentId;

    @Schema(description = "编号（所有父级编号）")
    private String parentIds;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "别名")
    private String alias;

    @Schema(description = "描述")
    private String subtitle;

    @Schema(description = "状态")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer status;

    @Schema(description = "顺序")
    private Integer sort;

    @Schema(description = "状态描述")
    private String statusLabel;

}
